package com.qww.exec10;

public class Exec10 {

    public static void main(String[] args) {
//        for (int i = 0; i < 10000; i++) {
//            new A();
//        }
        A a = new A();
        a = null;
        System.gc();
    }
}

class A {
    int x = 10;
    double a = 10.0;
    Object[] objs = {"", "", "", "1", "a"};

    @Override
    protected void finalize() throws Throwable {
        System.out.println("garbage collection.......");
    }
}
